package dk.hewison.client.panels;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import dk.hewison.client.mvc.Controller;
import dk.hewison.client.mvc.View;

/**
 * @author John Hewison
 * @author $LastChangedBy: john.hewison $:  $ $LastChangedDate: 2009-02-07 20:27:07 +0000 (Sat, 07 Feb 2009) $:
 * @version $Revision: 362 $:
 */
public abstract class CompositeView<T> extends Composite implements View<T> {

    Controller controller;
    T model;

    public Controller getController() {
        return controller;
    }

    public void setController(Controller controller) {
        this.controller = controller;
    }

    public Widget getMyWidget() {
        return this;
    }

    public T getModel() {
        return model;
    }

    public void setModel(T data) {
        model = data;
    }
}
